/**
 * 
 */
package org.t2.backstage.module.player.model;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.Index;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.Id.Strategy;
import org.banish.sql.core.annotation.enuma.IndexType;
import org.banish.sql.core.entity.AbstractEntity;
import org.gaming.service.repository.annotation.NoCache;
import org.springframework.stereotype.Repository;

/**
 * 
 */
@Repository
@NoCache
@Table(comment = "用户切换记录表", dbAlias = "backdata", indexs = {
		@Index(fields = "oriPlayerId", type = IndexType.UNIQUE),
		@Index(fields = "destPlayerId", type = IndexType.UNIQUE)})
public class PlayerSwitch extends AbstractEntity {
	@Id(strategy = Strategy.AUTO)
	@Column(comment = "数据ID")
	private long id;
	@Column(comment = "来源玩家ID")
	private long oriPlayerId;
	@Column(comment = "目标玩家ID")
	private long destPlayerId;
	@Column(comment = "操作用户ID")
	private long userId;
	@Column(comment = "操作用户名称")
	private String userName;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getOriPlayerId() {
		return oriPlayerId;
	}

	public void setOriPlayerId(long oriPlayerId) {
		this.oriPlayerId = oriPlayerId;
	}

	public long getDestPlayerId() {
		return destPlayerId;
	}

	public void setDestPlayerId(long destPlayerId) {
		this.destPlayerId = destPlayerId;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}
